<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-text指令和v-html指令</title>
    <script src="./js/vue.js"></script>
</head>
<body>
    <div id="app">
        <h1 v-text="msg">小{{msg}}</h1>
        <h1>傻逼{{msg}}</h1>
        <span v-html="togo"></span>
    </div>
</body>
</html>
<script>
    var app = new Vue({
        el: '#app',
        data: {
           msg:'你好丁华东',
           togo:'<a href="http://www.baidu.com">百度</a>',
        }
    })
</script>